﻿using System;
using System.Data;
using Ledict.ConditionExtract.IBLL;
using Ledict.ConditionExtract.IDAL;
using Ledict.Core.Ioc;
using Ledict.Core.Service;

namespace Ledict.ConditionExtract.BLL.New
{
    /// <summary>
    /// 测试逻辑类
    /// </summary>
    public class TestManager : ServiceManager<DataTable>, ITestManager
    {
        private readonly Lazy<ITreeDateDAL> _treeDateDal;

        public TestManager(IServiceGetter getter)
            : base(getter)
        {
            _treeDateDal = new Lazy<ITreeDateDAL>(() => _getter.Get<ITreeDateDAL>());
        }

        public void GetTreeData()
        {
            var str = _treeDateDal.Value.GetAllParentNode("1757");
        }
    }
}